import moment from 'moment'
moment.locale('zh-cn')

App({
  onLaunch(options) {
    // 第一次打开
    // options.query == {number:1}
    console.log('App Launch', options);
    console.log('getSystemInfoSync', dd.getSystemInfoSync());
    console.log('SDKVersion', dd.SDKVersion);
    this.globalData.corpId = options.query.corpId;
  },
  onShow(options) {
    // 从后台被 scheme 重新打开
    // options.query == {number:1}
    console.log('App Show');
  },
  onHide() {
    console.log('App Hide');
  },
  globalData: {
    corpId: '',
    token: '',
    userInfo: {},
    instituteInfo: {},
    operationGroups: []
  },
});
